package com.house.rent.ui.adapter;

import android.view.View;

import com.chad.library.adapter.base.BaseViewHolder;
import com.house.rent.view.XImageView;


public class XBaseViewHolder extends BaseViewHolder {

    public XBaseViewHolder(View view) {
        super(view);
    }

    /**
     * 设置图片url
     *
     * @param viewId
     * @param url
     * @return
     */
    public BaseViewHolder setImageUrl(int viewId, String url) {
        XImageView imageView = getView(viewId);
        if (imageView != null) {
            imageView.setImageUrl(url);
        }
        return this;
    }
}
